/**
 * Created by yangfan on 2016/10/13.
 */
define(["business/services/constant"], function (constant) {
    var newsUrl = constant.config.BASEURL_NEWS;
    var newsAPI = constant.config.CONSTANT_NEWS;
    var newsCollectionAPI = constant.config.CONSTANT_NEWSCOLLECTION;
    var newsCommentAPI = constant.config.CONSTANT_NEWSCOMMENT;
    var newsCategoryAPI = constant.config.CONSTANT_NEWSCATEGORY;
    return {
        newsHttpServices :function(requestion){
            return constant.httpSend(newsUrl,newsAPI,requestion);
        },
        updateCollection :function(requestion){
            return constant.httpSend(newsUrl,newsCollectionAPI,requestion);
        },
        getComment:function(requestion){
            return constant.httpSend(newsUrl,newsCommentAPI,requestion);
        },
        getNewsCategory:function(requestion){
            return constant.httpSend(newsUrl,newsCategoryAPI,requestion);
        }
    }
});

